﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberList.aspx.cs" Inherits="LongQuanWeb.Admin.MemberList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../Styles/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <table cellspacing="1" cellpadding="3" width="96%" align="center" class="gv_css">
        <tr>
            <td class="UserTableRow2" width="33%" colspan="3">
                <div align="left">
                    <asp:RadioButton ID="rbn_all" runat="server" Text="全部" Checked="true" 
                        GroupName="choose" oncheckedchanged="rbn_all_CheckedChanged" 
                        AutoPostBack="True" />
                    <asp:RadioButton ID="rbn_yes" runat="server" Text="已审核" GroupName="choose" 
                        oncheckedchanged="rbn_all_CheckedChanged" AutoPostBack="True" />
                    <asp:RadioButton ID="rbn_no" runat="server" Text="未审核" GroupName="choose" 
                        oncheckedchanged="rbn_all_CheckedChanged" AutoPostBack="True" />
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gv_active" runat="server" Width="100%" AutoGenerateColumns="False"
                    CssClass="gv_css" OnRowCommand="gv_new_RowCommand">
                    <RowStyle CssClass="row" />
                    <AlternatingRowStyle CssClass="alterRow" />
                    <Columns>
                        <asp:TemplateField HeaderText="编号">
                            <ItemTemplate>
                                <%#Eval("UserCode")%>
                            </ItemTemplate>
                            <HeaderStyle Width="10%"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="用户名">
                            <ItemTemplate>
                                <%#Eval("UserID")%>
                            </ItemTemplate>
                            <HeaderStyle Width="15%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="真实姓名">
                            <ItemTemplate>
                                <%#Eval("UserName")%>
                            </ItemTemplate>
                            <HeaderStyle Width="15%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="性别">
                            <ItemTemplate>
                                <%#Eval("Sex")%>
                            </ItemTemplate>
                            <HeaderStyle Width="10%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="毕业年份">
                            <ItemTemplate>
                                <%#Eval("GraduateYear")%>
                            </ItemTemplate>
                            <HeaderStyle Width="20%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="审核状态">
                            <ItemTemplate>
                                <%#Eval("Status").ToString().Trim()=="1"?"已审核":"未审核"%>
                            </ItemTemplate>
                            <HeaderStyle Width="10%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Button ID="audit" CommandName="audit" CommandArgument='<%#Eval("UserCode")+"|"+Eval("Status")%>' runat="server"
                                    Text='<%#Eval("Status").ToString().Trim()=="1"?"取消审核":"审核"%>' OnClientClick='return confirm("确认此操作吗？")' />
                                <asp:Button ID="show" CommandName="show" CommandArgument='<%#Eval("UserCode")%>' runat="server"
                                    Text="查看" />
                            </ItemTemplate>
                            <HeaderStyle Width="20%"></HeaderStyle>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb"
                    CurrentPageIndex="1" EnableTheming="true" FirstPageText="首页" LastPageText="尾页"
                    NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged" PageSize="10" PrevPageText="上一页"
                    ShowPageIndexBox="Never" UrlPaging="true" Width="100%">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
    <br />
    </form>
</body>
</html>
